﻿using Microsoft.EntityFrameworkCore.Migrations;
using System;
using System.Collections.Generic;

namespace Project.Migrations
{
    public partial class TestPerson : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "telephone",
                table: "Test-Person",
                newName: "Telephone");

            migrationBuilder.RenameColumn(
                name: "name",
                table: "Test-Person",
                newName: "Name");

            migrationBuilder.RenameColumn(
                name: "address",
                table: "Test-Person",
                newName: "Address");

            migrationBuilder.AddColumn<int>(
                name: "DeptId",
                table: "Test-Person",
                nullable: false,
                defaultValue: 0);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "DeptId",
                table: "Test-Person");

            migrationBuilder.RenameColumn(
                name: "Telephone",
                table: "Test-Person",
                newName: "telephone");

            migrationBuilder.RenameColumn(
                name: "Name",
                table: "Test-Person",
                newName: "name");

            migrationBuilder.RenameColumn(
                name: "Address",
                table: "Test-Person",
                newName: "address");
        }
    }
}
